Reseller Domain Murah dan termurah di Indonesia? ya di ResellerCamp.
         
 

Forum PHP Indonesia

 
Advanced Search
   
 
Home Register FAQ Memberlist Usergroups  
 
 

Forum PHP Indonesia Forum Index PHP Security [Ask] Download file berekstensi PHP
Display posts from previous:   
      All times are GMT + 7 Hours  

[Ask] Download file berekstensi PHP

Post new topic  Reply to topic

Fri Apr 02, 2010 17:24
Author Message
putera04
Anak Baru
Anak Baru


Joined: 02 Apr 2010
Posts: 1

Post subject: [Ask] Download file berekstensi PHP Reply with quote

Bisa nggak sih script PHP kita didownload melalui browser oleh orang lain? misal kita meletakkan script PHP kita di http://website/include/ yang isinya file berekstensi php.

Bagaimana cara mencegahnya?
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Tue Apr 06, 2010 03:43
Author Message
dewancc
PHPuser
PHPuser


Joined: 14 Jul 2009
Posts: 47

Post subject: Tidak mungkin Reply with quote

rasanya tidak munkin bagi kita untuk mendownload kontent php dari site lain tanpa kita berada di sisi server...

karena apabila kita membuka dari browser tanpa autentifikasi dari server maka yang terbaca hanya .html


karena .php akan di proses di server dan client hanya menerima outputnya saja yang berupa .html hanya saja ekstensi php... tpi itu hanyalah hasil dari proses pembacaan script php di server...


jadi apabila anda berpikir .php bisa di download dari browser tanpa berada di sisi server / login server / atau berhasil lolos autentifikasi server maka bisa saja saya download config dari site forum ini hehe...

dan melihat config settingnya hahaha....

kabooorrr... klo bisa mah dah jdi orang terkenal hehe... Horse Patrol
_________________
Aku tak tahu kapan aku mati tapi, mati di samping orang yang aku sayangi mungkin itu terbaik bagiku
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Sat Jul 03, 2010 15:30
Author Message
devil_divinity
PHPnewbie
PHPnewbie


Joined: 03 Jul 2010
Posts: 11

Post subject: Reply with quote

Tambahin aja

Options +Indexes

di .htaccess quit
 
View user's profile Send private message Send e-mail Yahoo Messenger
      Back To Top  

Wed Jul 07, 2010 02:54
Author Message
xindrax
PHPnewbie
PHPnewbie


Joined: 30 Jun 2010
Posts: 11
Location: surabaya

Post subject: Reply with quote

kalo nggak ingin terbaca file index
tiap folder kasih aja file index.html

contoh:
<html>
<head>
</head>
<body>

HE JANGAN MACAM2 ANDA TIDAK BERHAK MENGAKSES HALAMAN INI
wkwkkwkwkw

</body>
</html>


kurang lebih kayak gitulah,,,
silahkan coba kembangkan sendiri,,,,,
 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
      Back To Top  

Sat Jul 10, 2010 22:34
Author Message
cruzh
Anak Baru
Anak Baru


Joined: 10 Jul 2010
Posts: 2
Location: internet

Post subject: Reply with quote

kalo pengen aman betul tuh pake index aja,,,

trus isiin script kayak gini

Code:
<?php header("location:index.php"); ?>


jadi, biar ad yg akses direktory, lngsung kelempar keluar tuh,,, direktorynya sesuaikan aja,,,



Cool Man
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Sat Jul 17, 2010 18:47
Author Message
musicanda
PHP Master
PHP Master


Joined: 02 Jun 2010
Posts: 263
Location: Rumahnya Angeline

Post subject: Reply with quote

cruzh wrote:
kalo pengen aman betul tuh pake index aja,,,

trus isiin script kayak gini

Code:
<?php header("location:index.php"); ?>


jadi, biar ad yg akses direktory, lngsung kelempar keluar tuh,,, direktorynya sesuaikan aja,,,


setuju, index.php, nya isi aja dengan skrip ini..

header('location:main.php'); :)
Cool Man
 
View user's profile Send private message Send e-mail Visit poster's website
      Back To Top  
Post new topic  Reply to topic

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


      Back To Top  

Page 1 of 1
Jump to:  
Powered by phpBB © 2001, 2002 phpBB Group
Toko Kaos Couple | Avalanche style by What Is Real © 2004 | Toko Baju Butik Online | Cara Pedia | Busana Baju Muslim